package com.party.core.model.photo;

import com.party.core.model.BaseModel;

/**
 * @Description: 照片与相册关系
 * @Author: yangshoukun
 * @Date: 2018/5/29 17:49
 */
public class PhotosImgTag extends BaseModel {

    private static final long serialVersionUID = 7920743661535607051L;
    // 相册分类id
    private String tagId;
    // 照片id
    private String imgId;
    // 相册项目id
    private String photosId;

    public String getPhotosId() {
        return photosId;
    }

    public void setPhotosId(String photosId) {
        this.photosId = photosId;
    }

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PhotosImgTag)) return false;
        if (!super.equals(o)) return false;

        PhotosImgTag that = (PhotosImgTag) o;

        if (tagId != null ? !tagId.equals(that.tagId) : that.tagId != null) return false;
        if (imgId != null ? !imgId.equals(that.imgId) : that.imgId != null) return false;
        return photosId != null ? photosId.equals(that.photosId) : that.photosId == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (tagId != null ? tagId.hashCode() : 0);
        result = 31 * result + (imgId != null ? imgId.hashCode() : 0);
        result = 31 * result + (photosId != null ? photosId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PhotosImgTag{" +
                "tagId='" + tagId + '\'' +
                ", imgId='" + imgId + '\'' +
                ", photosId='" + photosId + '\'' +
                '}';
    }
}
